package org.devops



def Build(buildType,buildShell) {
    def buildTools = [
        "mvn" : "M3",
        "gradle": "gradle8.8",
        "npm": "node20"
    ]

    println("**********选择的构建类型是：${buildType}")
    println("**********选择的构建脚本是：${buildShell}") 
    buildHome = tool buildTools[buildType]
    println("**********构建工具路径：${buildHome}")
    sh "${buildHome}/bin/${buildType} ${buildShell}"

}